{% extends "layout.html" %}
{% from 'model/macros.html' import uri_field, lit_field, icon_tag  with context %}
{% set title ='Type: ' + value(type_meta, nsc['skos'].prefLabel) %}
{% block body %}
    <section class="section">
        {{ lit_field(value(type_meta, nsc['skos'].scopeNote), 'Description') }}
    </section>
    <section class="section">
        <h2>Resources of this Type</h2>
        <div class="gallery">
        {% for uid, label, icon in rsrcs %}
            <div class="gallery_item"><a href="/view{{ uid }}">
                {% if type_label.lower() == 'document' %}
                    {{ icon_tag(uid, label) }}
                {% else %}
                    {{ icon_tag(icon, label) }}
                {% endif %}
                <span class="icon_label">{{ label | e }}</span>
            </a></div>
        {% endfor %}
        </div>
    </section>
{% endblock %}
